package com.feign.feign.requests;

import com.feign.pojo.TestCaseCreate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @Description
 * @Author ZW
 * @Date 2022/12/24 18:30
 **/
@FeignClient(name = "Question-server", path = "question")
public interface QuestionFeign {
    /***
     * 通过题目id，查询改题目id下所有的测试用例
     * @param qid 题目id
     * @return 返回改题目下所有的测试用例
     */
    @GetMapping("getTestCase")
    Map<Object, List<TestCaseCreate>> getTestCase(@RequestParam Object qid);
}
